<template>
    <view>
        <view v-for="(item, index) in dictOptions" :key="index" v-if="item.dictValue == dictValue" class="py-dict-tag-tag">
            <u--text :text="item.dictLabel"></u--text>
        </view>
    </view>
</template>
<script>
    export default {
        name: "PyDictTag",
        props: {
            // 字典选项
            dictOptions: {
                type: Array,
                default: null,
            },
            // 当前值
            dictValue: {
                type: String,
                default: undefined
            }

        },
    }
</script>